<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./css/bootstrap.css">
    <title>Document</title>
</head>
<body>
    <form action="" class="form-horizontal">
        <!-- row用form-group代替 -->
        <!-- 栅格布局中列用group代替 -->
        <div class="form-group">
            <label for="" class="col-xs-2 control-label">账户名</label>
            <div class="col-xs-4">
                <input type="text" class="form-control">
            </div>
        </div>
        <div class="form-group">
            <label for="" class="col-xs-2 control-label">密码</label>
            <div class="col-xs-4">
                <!-- 通过form-control对input添加样式 -->
                <input type="password" class="form-control">
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-4 col-xs-offset-2">
                <button class="btn btn-success">登陆</button>
            </div> 
        </div>
    </form>
</body>
</html>